#
# https://www.akshare.xyz/zh_CN/latest/tutorial.html
# https://waditu.com/document/2
#

# import akshare as ak
#
# # get_roll_yield_bar_df = ak.get_roll_yield_bar(type_method="date", var="RB", start_day="20180618", end_day="20180718", plot=True)
# # print(get_roll_yield_bar_df)
#
# stock_zh_a_hist_df = ak.stock_zh_a_hist(symbol="603777", start_date="20210301", end_date='20210616')
# print(stock_zh_a_hist_df)

import tushare as ts

pro = ts.pro_api("11e2259ce54a73be7e128e2284ebf0947b87e41955aade1b9eaa7f02")

#查询当前所有正常上市交易的股票列表

data = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')